
<template>
  <el-row :gutter="10">
    <el-col :span="7">
      <el-input-number v-model="yuan" :min="0" :max="999" label="整数输入" precision="0" style="width: 140px;"/>
    </el-col>
    <el-col :span="3">
      <span>元</span>
    </el-col>
    <el-col :span="7">
      <el-input-number v-model="fen" :min="0" :max="999" label="整数输入" precision="0" style="width: 140px;"/>
    </el-col>
    <el-col :span="3">
      <span>分</span>
    </el-col>
  </el-row>
</template>

<script>
export default {
  props: {
    value: [String, Object, Array]
  },
  name: "priceInputBox",
  data() {
    return {
      yuan:0,
      fen:0,
    };
  },
  watch: {
    value: {
      handler(newValue, oldValue) {
        if (newValue && newValue !== oldValue && newValue.length > 0) {
          this.queryParams.scheduleId = newValue[0]
          this.getList();
        } else {
          this.queryParams.scheduleId = null;
        }
      },
      deep: true,
      immediate: true
    }
  },
  created() {

  },
  methods: {


  }
};
</script>
<style scoped lang="scss">

</style>
